package com.constant;

/**
 * 缓存的key 常量
 *
 * @author mvasoft
 */
public class CacheConstants
{
    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 限流 redis key
     */
    public static final String RATE_LIMIT_KEY = "rate_limit:";

    /**
     * 登录账户密码错误次数 redis key
     */
    public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";
    /**
     * 淘宝appKey redis key
     */
    public static final String TAOBAO_APP_KEY = "taobao_app_key";
    /**
     * 淘宝appKey redis 字典标签
     */
    public static final String TAOBAO_APP_KEY_DICT_LABEL = "淘宝appKey";
    /**
     * 淘宝appSecret redis key
     */
    public static final String TAOBAO_APP_SECRET = "taobao_app_secret";
    /**
     * 淘宝appSecret redis 字典标签
     */
    public static final String TAOBAO_APP_SECRET_DICT_LABEL = "淘宝appSecret";
    /**
     * 淘宝sessionKey redis key
     */
    public static final String TAOBAO_SESSION_KEY = "taobao_session_key";
    /**
     * 淘宝sessionKey redis 字典标签
     */
    public static final String TAOBAO_SESSION_KEY_DICT_LABEL = "淘宝sessionKey";

    /**
     * 发票连号key
     */
    public static final String LIAO_HAO = "L_";
    /**
     * 非发票连号key
     */
    public static final String FEI_LIAO_HAO = "F_";
}
